<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        div{
            width: 300px;
            height: 200px;
            border:5px solid;

            /* 边框不会撑大元素,而是会挤压内容 */
            /* box-sizing: border-box; */
            border-color: rgb(121, 137, 62) rgb(147, 176, 154) rgb(247, 228, 170) rgb(179, 204, 209);

            background-image: url("./头像.jpeg");
            background-position: center center;
            background-repeat: no-repeat;
            background-size: 100px 100px;
        }
    </style>
</head>
<body>
    
    <!-- 父元素尺寸 500*300, 边框宽度 5px
    背景图片可以任意选择, 垂直水平居中, 尺寸为 100* 100 -->

    <div>
        
    </div>
</body>
</html>